package com.appkudos.model;


public class User {

	private String username;
	private String firstname;
	private String lastname;
	private String dateCreated;
	
	public User(){
		username = "";
		firstname = "";
		lastname = "";
		setDateCreated("");
	}
	
	public User(String username, String firstname, String lastname){
		this.username = username;
		this.firstname = firstname;
		this.lastname = lastname;
		this.setDateCreated("");
	}	
	
	public User(String username, String firstname, String lastname, String dateCreated){
		this.username = username;
		this.firstname = firstname;
		this.lastname = lastname;
		this.setDateCreated(dateCreated);
	}
	
	/***
	 * Returns abbreviated name as "John S."
	 */
	public String getDisplayName(){
		return firstname + " " + lastname.substring(0,1) + ".";
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public void setDateCreated(String dateCreated) {
		this.dateCreated = dateCreated;
	}

	public String getDateCreated() {
		return dateCreated;
	}

	
}
